package main

import (
	"fmt"
	"math"
)

func main() {
	var (
		a float64
		b float64
		c float64
	)
	fmt.Println("a:")
	fmt.Scanln(&a)
	fmt.Println("b:")
	fmt.Scanln(&b)
	fmt.Println("c:")
	fmt.Scanln(&c)
	m := b*b - 4*a*c
	if m > 0 {
		x1 := (-b + math.Sqrt(m)) / 2 * a
		x2 := (-b - math.Sqrt(m)) / 2 * a
		fmt.Printf("x1=%f  x2=%f", x1, x2)
	} else if m == 0 {
		x1 := (-b + math.Sqrt(m)) / 2 * a
		fmt.Printf("x=%f", x1)
	} else {
		fmt.Println("no solution")
	}
}
